<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var hero = prompt('请输入你的影星');
        var starligth = prompt('星光值');
        // prompt 得到的数据都是string 类型
        console.log(typeof starligth);
        console.log(hero + '现在' + starligth + '级了'); 
    </script>    
</body>
</html>